import axios from "axios"
export const getAppName = () => {
  return new Promise((resolve, reject) => {
    const err = null
    axios.get("/api/json1.php")
                    .then(response=>{
                        console.log( response ) ;
                        alert(1);
                    })
                    .catch(error=>{
                        console.log(error);
                    })
    // setTimeout(() => {
    //   if (!err) resolve({ code: 200, info: { appName: '我来自异步请求' } })
    //   else reject(err)
    // })
  })
}

// export const getBook = () => {
//   return new Promise((resolve, reject) =>{

//   })
// }
